#define ADDRESS     "mqtt://raspberrypi.local:1883"
#define CLIENTID    "ExampleClientSub"
#define USERNAME    "serendipity"
#define PASSWORD    "yuanshenqidong"
#define TOPIC       "esp32s3/Max30102"
#define QOS         1
#define TIMEOUT     10000L

typedef void OnMessageCallback(const char* topic, const char* payload, int len);

void default_on_message(const char* topic, const char* payload, int len);
void set_on_message_callback(OnMessageCallback* callback);
void mqtt_subscriber_init();
void mqtt_subscriber_end();